// 关于 token 的操作模块
const TOKEN_KEY = 'geek-pc-token'
// 获取token
export const getToken = () => localStorage.getItem(TOKEN_KEY)
// 存储token
export const setToken = token => localStorage.setItem(TOKEN_KEY, token)
// 清除token
export const clearToken = () => localStorage.removeItem(TOKEN_KEY)
// 是否登录
export const isAuth = () => !!getToken()
